package org.javaboy.idemponent.controller;

import jakarta.annotation.PostConstruct;
import org.javaboy.idemponent.anno.Idemponent;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @PostMapping("/hello")
    @Idemponent
    public String hello() {
        return "hello";
    }

    @PostMapping("/hello2")
    public String world() {
        return "world";
    }
}
